#coding:utf-8

import pygtk
pygtk.require('2.0')
import gtk

class MyWindow:
    def __init__(self, title, width, height):
        self.window = gtk.Window()
        self.window.set_title(title)
        self.window.set_default_size(width, height)
        vbox = gtk.VBox(False, 5)
        hbox1 = gtk.HBox(False, 5)
        hbox2 = gtk.HBox(False, 5)
        label1 = gtk.Label('Label1')
        label1.set_angle(90)
        label2 = gtk.Label('Label2')
        label2.set_angle(270)
        label3 = gtk.Label('Label3')
        label4 = gtk.Label('Label4')
        label5 = gtk.Label('Label5')
        hbox1.pack_start(label1)
        hbox1.pack_start(label2)
        hbox2.pack_start(label3)
        hbox2.pack_end(label4)
        hbox2.pack_end(label5)
        vbox.pack_start(hbox1)
        vbox.pack_start(hbox2)
        self.window.add(vbox)
        label1.show()
        label2.show()
        label3.show()
        label4.show()
        label5.show()
        hbox1.show()
        hbox2.show()
        vbox.show()
        self.window.show()

    def main(self):
        gtk.main()

if __name__ == '__main__':
    window = MyWindow('PyGTK', 500, 380)
    window.main()
    
        
